package com.bit.bit_forum.dao;

import com.bit.bit_forum.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    int insert(User row);

    int insertSelective(User row);

    User selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(User row);

    int updateByPrimaryKey(User row);
    //参数中的注解中的参数是数据库中的名字,后面的参数对应的是model中定义的User类中的名字
    User selectByUserName(@Param("username")String username);


}